local ads__cungu = fk.CreateSkill {
  name = "ads__cungu",
}

ads__cungu:addEffect("viewas", {
  anim_type = "control",
  pattern = "bogus_flower",
  prompt = "#ads__cungu",
  handly_pile = true,
  filter_pattern = {
    min_num = 1,
    max_num = 1,
    pattern = "^.|.|^diamond",
  },
  view_as = function(self, player, cards)
    if #cards ~= 1 then return end
    local c = Fk:cloneCard("bogus_flower")
    c.skillName = ads__cungu.name
    c:addSubcard(cards[1])
    return c
  end,
  enabled_at_response = function (self, player, response)
    return not response
  end,
})

ads__cungu:addAI(nil, "vs_skill")

Fk:loadTranslationTable{
  ["$ads__cungu1"] = "请休息吧。",
  ["$ads__cungu2"] = "你累了。",
  ["ads__cungu"] = "村姑",
  [":ads__cungu"] = "你可以将一张非<font color='red'>♦</font>牌当【树上开花】使用。",
  ["#ads__cungu"] = "发动 村姑，将一张非<font color='red'>♦</font>牌当【树上开花】使用",
}




return ads__cungu
